﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ContractBalanceSP_ExtendForm.aspx.vb" Inherits="PubProject.ContractBalanceSP_ExtendForm" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o="urn:schemas-microsoft-com:office:office">
	<HEAD>
		<title></title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<link rel="stylesheet" type="text/css" href="/_forms/styles/form.css">
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<script language="javascript" src="/_controls/util/util.js"></script>
		<script language="javascript" src="/_controls/number/number.js"></script>
		<script language="javascript" src="/_controls/datetime/date.js"></script>
		<script language="javascript" src="/MyWorkflow/Workflow.js"></script>
		<script language="javascript" src="/MyWorkflow/Blank.js"></script>
		<script language="javascript" src="/PubProject/js/Public.js"></script>		
		<script language="javascript" src="/CBGL/JS/BudgetCostUse.js"></script>
		<script language="javascript" src="/CBGL/HTZX/HtBudget_Setup.js"></script>
		<script language="javascript" src="/CBGL/JS/StockCostUse.js"></script>
		<script language="javascript" src="/CBGL/JS/Public.js"></script>
		<script language="javascript" src="/CBGL/JS/ContractPub.js"></script>
		<style> body{font-size:9pt;}
	table{font-size:9pt;}
	P{font-size:9pt;}
		</style>
		<LINK href="/MyWorkflow/css/form.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		    var ObjBudgetCostUse = null;//选择合约规划类
//			var ObjStockCostUse = null; //选择公司库存类
//			var IfDdhs=null;            //是否单独执行
			 var sCfTypeName,sCfSouce,sRefType,sRefGUID,sContractGUID;
			/*------------------------------------------------------------------*/
			//表单接口函数，需扩展
			//1、Fill	--	表单填充
			//2、GetXML --	表单取数
			//3、Valid	--	表单校验
			/*------------------------------------------------------------------*/
			//屏避右键
			function document.oncontextmenu()
			{
				var s = event.srcElement.tagName;
				// For Selection Ranges, s will be UNDEFINED
				if (s && s != "INPUT" && s != "TEXTAREA" || event.srcElement.disabled || document.selection.createRange().text.length == 0)
				{
					event.returnValue = false;
				}
			}
			
			
			//发起工作流审批时的校验
			function InitValidate(){
			    if(sRefGUID=="") return false;
			    var sProjType;
			    //OK|BalanceType|ApproveState|ContractGUID
				var sFile = "/Cbgl/HTZX/HTBalance_XMLHTTP.aspx?RefGUID=" + escape(sRefGUID);
				var sRtn = openXMLHTTP(sFile,"GetBalanceInfo");
			    if(sRtn.split("|")[0]!="OK"){
			        alert("数据读取错误，请与管理员联系！");
			        return false;
			    }
				if(sRtn.split("|")[2]!="未审核")
				{
			        alert(sRtn.split("|")[2] + " 的结算单据不允许发起审批！");
			        return false;
			    }
			    sProjType = sRtn.split("|")[4];
				if(sRtn.split("|")[1]=="结算")
				{
				    //检查附属合同的审核状态
				    var strFile = "/Cbgl/HTZX/HTBalance_XMLHTTP.aspx?ContractGUID=" + escape(sRtn.split("|")[3]);
				    var strRtn = openXMLHTTP(strFile, "FuShuHtApproveState");
				    if (strRtn != "0")
				    {
					    //附属合同未审核，不允许主合同结算
					    alert("该合同存在未审核通过的附属合同，不允许结算！");
					    return false;
				    }	
				}
				//预警
				 //获得结算的合约规划使用XML
				GetBudgetXml(sRefGUID);
				//校验对应合约规划使用表的生效后的预估变更金额+预估变更差额是否等于当前合同对应合约规划的预估变更金额 
                var sReturn = VerifyBudget(null,true,false,sRefGUID,true);
                if(sReturn != "")
                {
                    return false;
                }
                
                if(Form1.TxtBalanceType.value!="阶段结算"){
                    if(!CheckBalanceIfAmountEqual(Form1.txtAlterBudgetList.value,sProjType,sContractGUID,sRefGUID,Form1.TxtBalanceAdjustAmount.value,false)) return false;	
				}
                
                var strBudgetList=GetYjBudgetList(Form1.txtAlterBudgetList.value,true);//格式为合约规划GUID1;合约规划GUID2|对应金额1;对应金额2........
                if(!CheckCostCompel(strBudgetList,"合同结算强控",sRefGUID,"发起审批")) {
                    return false;
                }
                return true;
		    }
			
			//功能：表单填充
			//editableDomainList	当前步骤可编辑域
			//invisibleDomainList   当前步骤不可见域
			//domainXML				域XML
			function Fill(editableDomainList,invisibleDomainList,domainXML)
			{
				var xmlDom = new ActiveXObject("Microsoft.XMLDOM"); 
			 	Form1.TxtUseCostInfo.setReadOnly(true, false);
	            Form1.TxtUseCostInfo.style.cursor = "hand"
	            Form1.TxtUseCostInfo.style.textDecorationUnderline = "true"
                
				if (domainXML && domainXML.length>0)	
				{		
					xmlDom.async=false; 
					xmlDom.loadXML(domainXML);
					
					if(xmlDom.parseError.errorCode != 0) 
						xmlDom = null; 
				}
				else
				{
					xmlDom = null;
				}
 
				Form1.TxtCode.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='编号']").text;
				Form1.TxtApplyDate.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='申请日期']").text;				
				Form1.TxtComponey.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='所属公司']").text;				
				Form1.TxtBalanceType.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='结算方式']").text;
				Form1.TxtJbr.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='经办人']").text;
				Form1.TxtContractCode.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合同编号']").text;
				Form1.TxtContractName.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合同名称']").text;
				Form1.TxtYfDeptName.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='乙方单位名称']").text;
				Form1.TxtSignDate.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='签约日期']").text;
				Form1.TxtSignAmount.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='签约金额']").text;
				Form1.TxtPreBalanceAlterAmount.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='结算前变更金额']").text;
				Form1.TxtBalanceAmount.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='结算金额']").text;
				Form1.TxtYfkAmount.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='已付款']").text;
				Form1.TxtYfkAmountBl.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='已付款比例']").text;
				Form1.TxtWfkAmount.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='未付款金额']").text;
				Form1.TxtBalanceAdjustAmount.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='结算调整金额']").text;
				Form1.TxtUseCostInfo.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合约规划']").text;
				
				Form1.TextArea1.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='经办部门意见']").text;
				if(Form1.TxtSignDate.value!=""){
				    Form1.TxtSignDate.value=Form1.TxtSignDate.value.split(" ")[0];
				}
				if(Form1.TxtBalanceType.value=="阶段结算"){
				    document.all("hygh").style.display="none";
				}
				
				var objlist = getHTMLDomainField(document);
				
				for(var i=0;i<objlist.length;i++)
				{ 	
					if((invisibleDomainList+",").indexOf(objlist[i].dm_name + ',')>-1)
					{
						//不可见域不显示
						objlist[i].style.display="none";
					}
				
					//不可编辑的disabled,可编辑的enabled
					if((editableDomainList+",").indexOf(objlist[i].dm_name + ',')>-1)
					{
						objlist[i].readOnly =false;
					}
					else
					{
						objlist[i].readOnly =true;
					}
				}
				sRefGUID = xmlDom.selectSingleNode("/BusinessType").attributes.getNamedItem("BusinessGUID").value;
				
				//相关附件
				if (sRefGUID != "")
				{
				    var sMode="";
				    sMode=requestURL("mode");
				    if(sMode=="3"){
					    document.all["appIfraFJ"].src = "/PubProject/Pub/DocumentUpFile.aspx?FKGUID=" + escape(sRefGUID) + "&UpFileState=LOOK&IsAllowOpenFile=true&Title=" + escape("结算附件") + "&DocType=" + escape("合同结算");
				    }else{
					    document.all["appIfraFJ"].src = "/PubProject/Pub/DocumentUpFile.aspx?FKGUID=" + escape(sRefGUID) + "&UpFileState=EDIT&IsAllowOpenFile=true&Title=" + escape("结算附件") + "&DocType=" + escape("合同结算");
				    }
				}

	            //没有启用成本则隐藏合约规划
	            if(Form1.txtLicenseCbgl.value=="0"){
	                document.all("UseCostInfo").style.display="none";
	            }

                 //获得结算的合约规划使用XML
				GetBudgetXml(sRefGUID);
				
			}
			
			
			//前端截取URL地址获取mode值
			function requestURL(paras){ 
                var url = location.href; 
                var paraString = url.substring(url.indexOf("?")+1,url.length).split("&"); 
                var paraObj = {} ;
                for (i=0; j=paraString[i]; i++){ 
                    paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=")+1,j.length); 
                } 
                var returnValue = paraObj[paras.toLowerCase()]; 
                if(typeof(returnValue)=="undefined"){ 
                    return ""; 
                }else{ 
                    return returnValue; 
                } 
            } 
			
			//功能：表单取数
			//参数：取值前的domainxml
			//返回值 取值后的domainxml
			function GetXML(domainXML)
			{
	
				var xmlDom = new ActiveXObject("Microsoft.XMLDOM");
				 
				xmlDom.async=false;
				xmlDom.loadXML(domainXML);
						
				if(xmlDom.parseError.errorCode != 0) return "";
				 
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='编号']").text = Form1.TxtCode.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='申请日期']").text = Form1.TxtApplyDate.value;				
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='所属公司']").text = Form1.TxtComponey.value;				
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='结算方式']").text = Form1.TxtBalanceType.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='经办人']").text = Form1.TxtJbr.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合同编号']").text = Form1.TxtContractCode.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合同名称']").text = Form1.TxtContractName.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='乙方单位名称']").text = Form1.TxtYfDeptName.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='签约日期']").text = Form1.TxtSignDate.value ;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='签约金额']").text = Form1.TxtSignAmount.value;				
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='结算前变更金额']").text = Form1.TxtPreBalanceAlterAmount.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='结算金额']").text = Form1.TxtBalanceAmount.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='已付款']").text = Form1.TxtYfkAmount.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='已付款比例']").text = Form1.TxtYfkAmountBl.value ;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='未付款金额']").text = Form1.TxtWfkAmount.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='结算调整金额']").text = Form1.TxtBalanceAdjustAmount.value ;
				
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合约规划']").text = Form1.TxtUseCostInfo.value;				
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='经办部门意见']").text = Form1.TextArea1.value;
				
				return xmlDom.xml;	
			}
			
			//功能：表单校验
			//参数：可编辑域列表
			function Valid(editableDomainList)
			{
				return true;
			}
			
			function GetBudgetXml(sRefGUID)
			{
			   var sFile = "/Cbgl/HTZX/HTBalance_XMLHTTP.aspx?sTypeName=balance&RefGUID=" + escape(sRefGUID);
				var sRtn = openXMLHTTP(sFile,"GetBalanceBudgetInfo");
                if ("NO"!=sRtn)
                {
                    //返回  sContractGUID|RefGUID|RefType|CfSouce|CfTypeName
                    var sRtnList = sRtn.split("|")
                    sContractGUID = sRtnList[1];
                    document.all.txtAlterBudgetList.value=sRtnList[0];
                }
			}
			
        function ChgUseCost()
        {
               
                if (document.all.txtAlterBudgetList.value=="")
                {
                    return; 	
                }
        	
	            if (document.readyState != "complete")
	            {
		            alert("当前页面没有加载完，请稍候保存！");
		            event.returnValue = false;
	                return;
	            }	
        		
        	
            var sMode = "3";
            selectAlterBudget('变更', sRefGUID, sContractGUID);
        	
        }

    //非“预估变更”类变更或结算打开合约规划
    function selectAlterBudget(sBusinessType,sBusinessGUID,sContractGUID)
    {
	    var sTitle = "选择合约规划";
	    var a_mode ="3";
	    var strParamList="";
	    var sFile="/CBGL/Htzx/HtBudget_Setup.aspx";
	    var myObject = new Object();
	    myObject.xml = document.all("txtAlterBudgetList").value;
    	
	    if (sBusinessType==undefined) sBusinessType="";
	    if (sBusinessGUID==undefined) sBusinessGUID="";
	    if (sContractGUID==undefined) sContractGUID="";
	    strParamList = "BusinessType="+escape(sBusinessType);
	    strParamList +="&BusinessGUID="+escape(sBusinessGUID);
	    strParamList +="&ContractGUID="+escape(sContractGUID);
	    strParamList +="&mode="+escape(a_mode);   
        strParamList +="&dftAmount=" +Form1.TxtBalanceAdjustAmount.value;
        strParamList +="&AlterAmount="+escape("结算金额|"+Form1.TxtBalanceAdjustAmount.value+"|结算调整");


	    openMyDlg(sTitle, sFile, strParamList, myObject, 790, 570);
    }



		function openViewLayer(vBudgetList)
         {
	        var xmlBudget;
	        var i;
	        var sBudgetGUID;
        	
	        sBudgetGUID="";
	        //xmlBudget = ObjBudgetCostUse.DataXml;
	        if(Form1.txtAlterBudgetList.value=="")
	        {
	            return;
	        }
	        xmlBudget = new ActiveXObject("Microsoft.XMLDOM");
	        xmlBudget.async = false;
	        xmlBudget.loadXML(Form1.txtAlterBudgetList.value);
	        iRow =xmlBudget.getElementsByTagName("cb_BudgetUse/DataList/Row").length;
	        for(i=0;i<iRow;i++)
	        {
		        node = xmlBudget.getElementsByTagName("cb_BudgetUse/DataList/Row")(i);
		        sBudgetGUID=sBudgetGUID + ""+node.attributes.getNamedItem("BudgetGUID").text+",";
	        }	
	        if(sBudgetGUID!="")
	        {
	          sBudgetGUID = sBudgetGUID.substring(0,sBudgetGUID.lastIndexOf(","))
	          createBg(); 
              createCon(sBudgetGUID); 
	        }
	        else
	        {
	           return false; 
	        }
            
         }

</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" id="bodyId">
		<form id="Form1" method="post" runat="server">
			<asp:textbox id="ApplyUserGUID" runat="server" style="display:none"></asp:textbox>
			<asp:textbox id="ApplyDeptGUID" runat="server" style="display:none"></asp:textbox>
			<asp:textbox id="ResultTypeGUID" runat="server" style="display:none"></asp:textbox>
			<asp:textbox id="WorkResultGUID" runat="server" style="display:none"></asp:textbox>	
			<asp:textbox id="txtAlterBudgetList" style="DISPLAY: none" Runat="server"></asp:textbox>
            <asp:textbox id="txtLicenseCbgl" style="DISPLAY: none" Runat="server"></asp:textbox>

			<TABLE width="100%">
				<TBODY>
					<TR>
						<TD><!-- 表单 -->
							<P align="center" id="pTitle"><FONT style="FONT-SIZE: 16px"><STRONG>合同结算审批表</STRONG></FONT></P>
							<P align="center">
								<TABLE style="TABLE-LAYOUT: fixed; WIDTH: 90%; BORDER-COLLAPSE: collapse" borderColor="#517dbf"
									cellSpacing="2" cellPadding="3" align="center" bgColor="#ffffff" border="1">
									<colgroup>
										<col width="100">
										<col>
										<col width="100">
										<col>										
									</colgroup>
									<TR height="25">
										<TD>
											编号
										</TD>
										<TD>
											<INPUT class="txt" id="TxtCode" style="WIDTH: 100%; HEIGHT: 100%" maxLength="4000"
												dm_name="编号">
										</TD>
										<TD>
											申请日期
										</TD>
										<TD >
											<INPUT class="txt" id="TxtApplyDate" style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" dm_name="合同名称"> 
										</TD>
									</TR>
									<TR height="25">
										<TD colspan="4">
											<table  style="WIDTH: 100%; HEIGHT: 100%" maxLength="100"  borderColor="#517dbf">
											<colgroup>
										        <col width="100">
										        <col>
										        <col width="100">
										        <col>										
										        <col width="100">
										        <col>										
									        </colgroup>
									            <tr>
											        <td>所属公司</td>
											        <td><INPUT class="txt" id="TxtComponey" style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" dm_name="所属公司"> </td>
											        <td>结算方式</td>
											        <td><INPUT class="txt" id="TxtBalanceType" style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" dm_name="结算方式"> </td>
											        <td>经办人</td>
											        <td><INPUT class="txt" id="TxtJbr" style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" dm_name="经办人"> </td>
											    </tr>
											</table>
										</TD>
									</TR>
									<TR height="25">
										<TD>
											合同编号
										</TD>
										<TD>
											<INPUT class="txt" id="TxtContractCode" style="WIDTH: 100%; HEIGHT: 100%" maxLength="4000"
												dm_name="合同编号">
										</TD>
										<TD>
											合同名称
										</TD>
										<TD >
											<INPUT class="txt" id="TxtContractName" style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" dm_name="合同名称"> 
										</TD>
									</TR>
									<TR height="25">
										<TD>
											乙方单位名称
										</TD>
										<TD>
											<INPUT class="txt" id="TxtYfDeptName" style="WIDTH: 100%; HEIGHT: 100%" maxLength="4000"
												dm_name="乙方单位名称">
										</TD>
										<TD>
											签约日期
										</TD>
										<TD >
											<INPUT class="txt" id="TxtSignDate" style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" dm_name="签约日期"> 
										</TD>
									</TR>
										<TR height="25">
										<TD colspan="4">
											<table style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" >
												<colgroup>
										        <col width="100">
										        <col>
										        <col width="100">
										        <col>										
										        <col width="100">
										        <col>										
									        </colgroup>
										    <tr>
											        <td>签约金额</td>
											        <td><INPUT class="num" id="TxtSignAmount" style="WIDTH: 100%; HEIGHT: 100%" maxLength="20" dm_name="签约金额" acc="2"> </td>
											        <td>结算前变更金额</td>
											        <td><INPUT class="num" id="TxtPreBalanceAlterAmount" style="WIDTH: 100%; HEIGHT: 100%" maxLength="20" dm_name="结算前变更金额" acc="2"> </td>
											        <td>结算金额</td>
											        <td><INPUT class="num" id="TxtBalanceAmount" style="WIDTH: 100%; HEIGHT: 100%" maxLength="20" dm_name="结算金额" acc="2"> </td>
											    </tr>
											</table>
										</TD>
									</TR>
									<TR height="25">
										<TD colspan="4">
											<table style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" >
												<colgroup>
										        <col width="100">
										        <col>
										        <col width="100">
										        <col>										
										        <col width="100">
										        <col>										
									        </colgroup>
										    <tr>
											        <td>已付款</td>
											        <td><INPUT class="num" id="TxtYfkAmount" style="WIDTH: 100%; HEIGHT: 100%" maxLength="20" dm_name="已付款" acc="2"> </td>
											        <td>已付款比例(%)</td>
											        <td><INPUT class="num" id="TxtYfkAmountBl" style="WIDTH: 100%; HEIGHT: 100%" maxLength="20" dm_name="已付款比例" acc="2"> </td>
											        <td>未付款金额</td>
											        <td><INPUT class="num" id="TxtWfkAmount" style="WIDTH: 100%; HEIGHT: 100%" maxLength="20" dm_name="未付款金额" acc="2"> </td>
											    </tr>
											</table>
										</TD>
									</TR>								
									<TR height="25">
										<TD>
											结算调整金额
										</TD>
										<TD colspan=3>
											<INPUT class="num" id="TxtBalanceAdjustAmount" style="WIDTH: 80%; HEIGHT: 100%" maxLength="20" dm_name="结算调整金额" acc="2">
										</TD>										
									</TR>
									<TR height="70" id="UseCostInfo">										
										<TD colspan=4>
											<table id="hygh" cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT:fixed">
                                                <col width=70/><col width=50 /><col /><col width="25" align="right"/><col width=70/>
                                                <tr>
                                                    <td align=right></td> 
                                                    <td>合约规划</td>
                                                    <td><input type="text" class="txt" readOnly="0" name="TxtUseCostInfo" value="" maxlength="2000" onclick="openViewLayer(this)"></td>
                                                    <td align="right"><img style="cursor:hand" src="/_imgs/btn_off_lookup.gif" onclick="ChgUseCost()"></td>
                                                    <td></td>
                                                </tr>
                                                <tr height="5"><td align=right colspan=5></td> </tr>
                                            </table>
										</TD>
										
									</TR>									
									<TR height="200">
										<TD align=center>
											经办部门意见
										</TD>
										<TD colspan=3>
                                            <textarea  style="WIDTH: 100%; HEIGHT:100%" id="TextArea1" cols="140" rows="15"  dm_name="经办部门意见"></textarea>
										</TD>										
									</TR>
									
									<TR>
										<TD COLSPAN="4">
											<table width="100%" cellspacing="0" cellpadding="3" style="table-layout:fixed;">
												<TR>
													<TD class='sec bar'>
														相关附件
													</TD>
												</TR>
												<TR height="50">
													<TD>
														<iframe id="appIfraFJ" src="" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>
													</TD>
												</TR>
											</table>
										</TD>
									</TR>
								</TABLE>
							</P>
						</TD>
					</TR>					
				</TBODY>
			</TABLE>
		</form>
		<xml id="NumberFormatXml">
			<number>
				<val>0</val>
				<format>#,##0.00</format>
			</number>
		</xml>
		<XML ID="NumberFormatXslt">
			<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
				<xsl:output method="text"/>
				<xsl:template match='number'>
					<xsl:value-of select='format-number(val,format)' />
				</xsl:template>
			</xsl:stylesheet>
		</XML>	
	</body>
</HTML>